package grape.base.rest.user.form;

import grape.common.rest.form.BaseForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 更新个人基本信息表单
 * </p>
 *
 * @author yangwei
 * @since 2019-09-23
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Accessors(chain = true)
@ApiModel(value="更新个人基本信息表单")
public class UserinfoUpdateForm extends BaseForm {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "昵称不能为空")
    @ApiModelProperty(value = "昵称，姓名",required = true)
    private String nickname;

    @NotEmpty(message = "性别不能为空")
    @ApiModelProperty(value = "性别",notes = "通过字典获取，字典组编码为gender",required = true)
    private String genderDictId;

    @ApiModelProperty(value = "头像")
    private String avatar;

}
